package Problem;

import java.util.Scanner;

//
// Created by ✎﹏ℳ๓独赏☆独醉 on 2024/1/13.
// 
public class 字母塔 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        char flag = scan.next().charAt(0);
        for (char i = 'A'; i <= flag; i++) {
            for (int j = flag-i; j > 0; j--) {
                System.out.print(" " + " ");
            }
            for (char j = 'A'; j <= i; j++) {
                System.out.print(j + " ");
            }
            for (char j = (char) (i-1); j >='A' ; j--) {
                System.out.print(j + " ");
            }
            System.out.println();
        }
        for (char i = (char) (flag-1);i >= 'A';i--){
            for (int j = flag-i; j > 0;j--){
                System.out.print(" "+" ");
            }
            for (char j = 'A';j<=i;j++) {
                System.out.print(j+" ");
            }
            for (char j = (char)(i-1);j>='A';j--){
                System.out.print(j+" ");
            }
            System.out.println();
        }
    }
}
